require './application'

task :default do
  File.open('output.sql', 'w:UTF-8') do |f|
    User.all.each { |record| f << record.to_sql }
    Category.all.each { |record| f << record.to_sql }
    Discussion.all.each { |record| f << record.to_sql }
    Comment.all.each { |record| f << record.to_sql }
  end
end